﻿import com.dinmax.flash.draw.control.*

class MovieClipHelper {
	public static function setEventListener(container:MovieClip,eventListener:MovieClipEvent){
	    
		container.onPress=function () {
			eventListener.onPress(this);
		}
		container.onRelease=function () {
			eventListener.onRelease(this);
		}
		container.onReleaseOutside=function(){
			eventListener.onReleaseOutside(this);
		}
		container.onRollOut=function() {
			eventListener.onRollOut(this);
		}
		container.onRollOver=function() {
			eventListener.onRollOver(this);
		}
	}
}
